import tools from "../../../tools"
import hierParentInstance from './hierParentInstance'

export default class treeInstance extends hierParentInstance {
  constructor(hier) {
    super(hier, treeInstance)
  }
  static create(hier={}) {
    this.set(hier)
    return new treeInstance(hier)
  }
  set(hier) {
    this.hier = hier
  }
  static tpl() {
    return {
      type: 'tree',
      content: [
        // item
      ]
    }
  }
  static itemTpl() {
    return {
      nodeId: tools.uuid(),
      parentId: '',
      nodeType: '',
      name: '',
      values: {},
      link:{},
    }
  }
}
